//
//  JLPayESignClient.h
//  Pods
//
//  Created by Jack on 2021/3/26.
//

#import <Foundation/Foundation.h>

@class JLPayESignErrorModel;
NS_ASSUME_NONNULL_BEGIN

/** 成功回调 */
typedef void(^JLSuccessBlock)(void);
/** 失败回调 */
typedef void(^JLFailBlock)(JLPayESignErrorModel *errorModel);


@interface JLPayESignClient : NSObject


/// 是否开启log输出，默认debug开启，其他关闭
/// @param enable YES 或者 NO
+ (void)logEnable:(BOOL)enable;

/// 启动方法
/// @param appId 分配的appId
/// @param fromVC 当前控制器
/// @param successBlock 成功回调
/// @param failBlock 失败回调
+ (void)startWithAppId:(NSString *_Nonnull)appId
                fromVC:(UIViewController *_Nullable)fromVC
               success:(JLSuccessBlock)successBlock
                  fail:(JLFailBlock)failBlock;

/// sdk版本号
+ (NSString *)sdkVersion;

///设置网络类型，测试版本才生效
+ (void)setNetworkType:(int)networkType;



@end

@interface JLPayESignErrorModel : NSObject
/** 错误码 */
@property (nonatomic, copy) NSString *ret_code;
/** 错误描述 */
@property (nonatomic, copy) NSString *ret_msg;

@end

NS_ASSUME_NONNULL_END
